ihelpuoo.http.Server = function()
{
	this.rootPath = null;
	this.blankHref = "javascript:void(0)";
	this.module = null;
	this.actionSuffix = ".o";
}

ihelpuoo.http.Server.prototype
=
{
	icon: function(name, moduleName)
	{
		return this.rootPath + (moduleName?"/"+moduleName:(this.module?"/"+this.module:"")) + "/style/icon/" + name;
	}
	
	,
	horn: function(name, moduleName)
	{
		return this.rootPath + (moduleName?"/"+moduleName:(this.module?"/"+this.module:"")) + "/style/horn/" + name;
	}
	
	,
	btn: function(name, moduleName)
	{
		return this.rootPath + (moduleName?"/"+moduleName:(this.module?"/"+this.module:"")) + "/style/btn/" + name;
	}
	
	,
	pic: function(name, moduleName)
	{
		return this.rootPath + (moduleName?"/"+moduleName:(this.module?"/"+this.module:"")) + "/style/pic/" + name;
	}
	
	,
	brace: function()
	{
		return horn("brace.gif","weboo");
	}
	
	,
	url: function(moduleName, actionName , queryString, useCache)
	{
		if(null==moduleName || null==actionName) return null;
		if(!ihelpuoo.endsWith(actionName,this.actionSuffix))
			actionName += this.actionSuffix;
		if(null==queryString)
			return this.rootPath + "/" + moduleName + "/"
					+ actionName
					+ (useCache?"":"?"+ihelpuoo.http.TimeBadge());
		return  this.rootPath + "/" + moduleName + "/"
				+ actionName
				+ "?" + queryString + (useCache?"":"&"+ihelpuoo.http.TimeBadge());
	}
}

var ihelpuoo_http_server = new ihelpuoo.http.Server();

ihelpuoo.http.server = function()
{
	return ihelpuoo_http_server;
}
